﻿<xctk:ChildWindow
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" 
			 xmlns:Jiuyong_ViewModels="clr-namespace:Jiuyong.ViewModels" 
			 x:Class="Jiuyong.InputStringWindow" 
             mc:Ignorable="d" IsModal="True" WindowStartupLocation="Center" MinWidth="240">
	<xctk:ChildWindow.DataContext>
		<Jiuyong_ViewModels:InputStringViewModel/>
	</xctk:ChildWindow.DataContext>
    <Grid>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="*"/>
    		<ColumnDefinition Width="*"/>
    	</Grid.ColumnDefinitions>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition Height="40"/>
    	</Grid.RowDefinitions>
    	<Label Content="{Binding MessageText, TargetNullValue=输入字符串(_I)：}" Margin="{DynamicResource ItemMarginThickness}" VerticalAlignment="Center" Target="{Binding ElementName=InputStringBox}" Grid.ColumnSpan="9"/>
    	<ComboBox x:Name="InputStringBox" Grid.Row="1" Grid.ColumnSpan="3" Text="{Binding InputString, Mode=TwoWay}" Margin="8" IsEditable="True" ItemsSource="{Binding OtherStrings}"/>
    	<Button x:Name="CancelButton" Content="取消(_C)" VerticalAlignment="Center" Grid.Row="2" HorizontalAlignment="Center" IsCancel="True" Width="75" Margin="{DynamicResource ItemMarginThickness}" Cursor="Hand"/>
    	<Button x:Name="OKButton" Content="确定(_O)" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" IsDefault="True" Width="75" Margin="{DynamicResource ItemMarginThickness}" Cursor="Hand"/>
            
            
    </Grid>
</xctk:ChildWindow>
